import req from '@/http/http'
import {getServer} from '@/http/AppApi'

let ZHPQ_SERVER = getServer()

// 防溺管理水域信息
// 修改
export const updateWater = data => {
  let path = ZHPQ_SERVER + '/water/' + data.id
  return req.put(path, data)
}
// 删除
export const delWater = data => {
  let path = ZHPQ_SERVER + '/water/' + data.id
  return req.delete(path)
}
// 获取 查询 分页
export const findWater = param => {
  let path = ZHPQ_SERVER + '/water'
  return req.get(path, param)
}
// 新增
export const createWater = data => {
  let path = ZHPQ_SERVER + '/water/'
  return req.post(path, data)
}
// 详情
export const getWater = id => {
  let path = ZHPQ_SERVER + '/water/' + id
  return req.get(path)
}
// 详情
export const findWaterList = data => {
  let path = ZHPQ_SERVER + '/water/list'
  return req.get(path, data)
}
